lua: avoid truncation of large numeric values
authorAlin Nastac <[email protected]>
Mon, 3 Feb 2020 12:58:04 +0000 (13:58 +0100)
committerPetr Štetiar <[email protected]>
Thu, 3 Jun 2021 08:00:50 +0000 (10:00 +0200)
commit9ec9cfc6574a197ea934489de056594f44088352
tree1b21638351b619614ec04966e0a17e959c7fd630
parent041c9d1c052bb4936fd03240f7d0dd64aedda972
lua: avoid truncation of large numeric values

If the Lua number exceeds the maximum value representable by an
unsigned 32bit integer, store it in an unsigned 64bit integer
field instead.

Signed-off-by: Alin Nastac <[email protected]>
[align code style, reword commit message]
Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit 171469e3138cce191892e20b6fd35b52c9368064)
lua/ubus.c